﻿package util;

import common.LongIDGeneratorFactory;

public class IDGeneratorUtil {

	private static LongIDGeneratorFactory longIdGenerator = new LongIDGeneratorFactory();

	public static Object generate(char type) {
		switch (type) {
		case 's':
			//return generateStringID();
		default:
			return generateLongID();
		}
	}

	public static Long generateLongID() {
		return longIdGenerator.generateID();
	}

	public static void main(String[] args) {
		System.out.println(IDGeneratorUtil.generateLongID());
	}

}
